package com.fbote.system;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import com.fbote.base.IBaseDAO;

public class Introduction implements MethodInterceptor {
	IBaseDAO dao;
	
	public IBaseDAO getDao() {
		return dao;
	}

	public void setDao(IBaseDAO dao) {
		this.dao = dao;
	}

	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.println("========invocation==========");
		HttpServletRequest request = (HttpServletRequest) invocation
				.getArguments()[2];
		HttpServletResponse response = (HttpServletResponse) invocation
				.getArguments()[3];
		String method = request.getParameter("method");


		return invocation.proceed();
	}


}
